package org.pulloid.android.sample;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class DefaultActivity extends Activity {
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        findViewById(R.id.rss).setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		startActivity(new Intent(DefaultActivity.this, RSSActivity.class));
        	}
        });
        
        findViewById(R.id.photos).setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		startActivity(new Intent(DefaultActivity.this, PhotosActivity.class));
        	}
        });
    }
    
}